@charset "utf-8";
@import "common";

@mixin mutilOverflow {
    overflow: hidden;
    display: -webkit-box;
    /* !Autoprefixer: off */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.wrap {
    main {
        .carousel {
            .carousel-inner {
                img {
                    width: 100%;
                }
            }
        }
        .lieren2 {
            .lieren2-left {
                .hot {
                    width: 40px;
                    background-color: #FF4738;
                    padding: 25px 10px;
                    text-align: center;
                    color: #fff;
                    position: relative;

                    &::after {
                        content: "";
                        position: absolute;
                        left: 0;
                        bottom: 0;
                        width: 0;
                        height: 0;
                        font-size: 0;
                        border-width: 20px;
                        border-style: solid;
                        border-color: transparent transparent #fff transparent;
                    }
                }

                .lieren2-img {
                    transform: translateX(-20px) translateY(-50px);
                }
            }

            .lieren2-desc {
                text-align: right;

                h2 {
                    font-size: 30px;
                    color: #2a2a2a;
                }

                p {
                    line-height: 30px;
                    font-size: 12px;
                }
            }

            img {
                width: 100%;
                margin: 10px auto;
            }
        }

        .goZhugong {
            padding: 60px 0 100px;

            .goZhugong-desc {
                h2 {
                    font-size: 30px;
                    color: #2a2a2a;
                }

                p {
                    line-height: 30px;
                    font-size: 12px;
                }
            }

            img {
                width: 100%;
                margin: 10px auto;
            }

            .goZhugong-right {
                margin-top: 30px;
            }
        }

        .moreCase {
            padding-bottom: 50px;
            h2 {
                font-size: 36px;
                color: #010101;
                margin-bottom: 30px;
            }

            .moreCase-item {
                width: 100%;
                height: 100%;
                margin-bottom: 40px auto 0;
                .moreCase-img {
                    position: relative;
                    &:hover .explanation{
                        opacity: 0.7;
                    }
                    img {
                        width: 100%;
                    }

                    .explanation {
                        height: 100%;
                        background-color: #000;
                        border-radius: 8px;
                        position: absolute;
                        top: 0;
                        opacity: 0;
                        transition: opacity 1.1s;

                        p {
                            font-size: 12px;
                            color: #fff;
                            padding: 13px 13px 0;
                            text-align: left;
                        }
                    }
                }
                p {
                    font-size: 14px;
                    color: #2a2a2a;
                    text-align: center;
                }

            }
        }
    }
}

@media screen and (max-width:991px) {
    .wrap {
        main {
            .lieren2 {
                .lieren2-left {
                    display: none;
                }

                .lieren2-desc {
                    h2 {
                        text-align: center;
                    }

                    p {
                        text-align: left;
                    }
                }
            }

            .goZhugong {
                padding: 20px 0;

                .goZhugong-desc {
                    h2 {
                        text-align: center;
                    }
                }

                .goZhugong-right {
                    display: none;
                }
            }
            .moreCase{
                padding-bottom: 25px;
                h2{
                    font-size: 30px;
                }
                .moreCase-item{
                    .moreCase-img{
                        .explanation{
                            p{
                                @include mutilOverflow;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width:767px) {
    .wrap {
        main {
            .lieren2 {
                .lieren2-desc {
                    h2 {
                        font-size: 25px;
                    }
                }
            }

            .goZhugong {
                .goZhugong-desc {
                    h2 {
                        font-size: 25px;
                    }
                }
            }
            .moreCase{
                padding-bottom: 15px;
                h2{
                    font-size: 25px;
                }
                .moreCase-item{
                    .moreCase-img{
                        .explanation{
                            display: none;
                        }
                    }
                }
            }
        }
    }
}